import request from '@/utils/request'

// 查询下拉框测试列表
export function listDowntestable(query) {
  return request({
    url: '/system/downtestable/list',
    method: 'get',
    params: query
  })
}

// 查询下拉框测试详细
export function getDowntestable(id) {
  return request({
    url: '/system/downtestable/' + id,
    method: 'get'
  })
}

// 新增下拉框测试
export function addDowntestable(data) {
  return request({
    url: '/system/downtestable',
    method: 'post',
    data: data
  })
}

// 修改下拉框测试
export function updateDowntestable(data) {
  return request({
    url: '/system/downtestable',
    method: 'put',
    data: data
  })
}

// 删除下拉框测试
export function delDowntestable(id) {
  return request({
    url: '/system/downtestable/' + id,
    method: 'delete'
  })
}
